import Taro, { Component, Config } from '@tarojs/taro'
import { View, Text,Button,Image } from '@tarojs/components'
import Tabbar from '../../componrnts/tabBar'
import { AtButton,AtNavBar  } from 'taro-ui'
export default class User extends Component {
  constructor (props) {
    super(props)   // ✓ 正确
    this.state = {
      isOpened: false,
      show:false,
      text:'打开弹框',
      current:3
    }
  }
  componentWillMount () {
   
   }

  componentDidMount () {
   
  }

  componentWillUnmount () { 
   
  }

  componentDidShow () { }

  componentDidHide () { }
  handleClick(){
     
  }
  render () {
    return (
      <View className='active'>
        <AtNavBar
          onClickRgIconSt={this.handleClick}
          onClickRgIconNd={this.handleClick}
          onClickLeftIcon={this.handleClick}
          leftIconType='chevron-left'
          color='black'
          title='NavBar 导航栏示例'
          leftText='返回' 
          rightFirstIconType='bullet-list'
          rightSecondIconType='user'
        />
           <Text>我是用户页面</Text>
           {/* <Tabbar onCurrent={this.state.current}/>  */}
      </View>
    )
  }
}
